package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

@ToString
@ApiModel("")
@Table(name = "tb_comment")
public class TbComment {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotEmpty(message="主键不能为空")
    @Id
    private String spuId;

    /**
     * 评论人
     */
    @ApiModelProperty(value = "username")
    @Column(name = "username")
    private String username;

    /**
     * 评论下的评论人
     */
    @ApiModelProperty(value = "parentName")
    @Column(name = "parentName")
    private String parentName;

    /**
     * evaluate
     */
    @ApiModelProperty(value = "几星好评")
    @Column(name = "evaluate")
    private Integer evaluate;

    /**
     * IP地址
     */
    @ApiModelProperty(value = "ip地址")
    @Column(name = "ip_address")
    private String ipAddress;

    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间")
    @Column(name = "comment_time")
    private Date comment_time;

    /**
     * 师傅显示
     */
    @ApiModelProperty(value = "是否显示")
    @Column(name = "display")
    private String display;


    /**
     * 阅览量
     */
    @ApiModelProperty(value = "阅览量")
    @Column(name = "reading_volume")
    private String readingVolume;


    /**
     * 评论
     */
    @ApiModelProperty(value = "评论")
    @Column(name = "reply")
    private String reply;

    /**
     * 排序
     */
    @ApiModelProperty(value = "seq")
    @Column(name = "seq")
    private String seq;
}
